package String;

public class MatchesDemo07 {
    public static void main(String[] args) {
    /*
     * 将字符串按照正则
     * split 劈开
     *
     */
        String str="1,老王,,15600101234,tom@tedu.cn";//空字符串“ , , ”,表示这个位置没有数据
        String[]data=str.split(",");
        System.out.println(data[1]);
        System.out.println(data[2]);
        System.out.println(data[3]);
        System.out.println(data[0]);


        String str1="aaa2bbb4fff9fff";
        String s=str1.replaceAll("\\d", "花姑娘");
        System.out.println(s);
}
}